import React, { Component,Children } from "react";

class co1 extends Component {
  render() {
      console.log(this.props.children,'this.props.children',React.Children)
    return (
      <ol>
        {Children.map(this.props.children, function (child) {
          console.log(child, "-------------");
          return <li>{child}</li>;
        })}
      </ol>
    );
  }
}

export default co1;
